package com.xjtu.conan.service;

import com.xjtu.conan.entity.NewsInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.conan.entity.TheatreInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 新闻表 服务类
 * </p>
 *
 * @author 一只黑猩猩
 * @since 2021-04-19
 */
public interface NewsInfoService extends IService<NewsInfo> {
    public List<NewsInfo> getAllNewsInfo(int current, int size);

    public NewsInfo getNewBynId(Long nid);

    public Long addNewsInfo(NewsInfo newsInfo) throws IOException;

    public Long updateNewsInfo(NewsInfo newsInfo);

    public int deleteNewsInfo(Long nid);

    public int getTotal();
}
